package com.dmap.admin.service.backgroundv2;

import com.dmap.admin.bo.backgroundv2.ProjectBo;
import com.dmap.admin.controller.backgroundv2.param.ProjectParam;
import com.dmap.admin.controller.backgroundv2.param.ProjectSelectParam;
import com.dmap.admin.po.Project;

import java.util.List;

/**
 * \* User: helei
 * \* Date: 25/05/18
 * \* Description:项目相关接口
 * \
 */
public interface ProjectService {

    Project insertProject(ProjectParam param);

    boolean updateProject(ProjectParam param);

    /**
     * 验证 DeviceId 是否已存在
     *
     * @param deviceId 对应的设备id
     * @return
     */
    boolean validateDeviceIdIsExist(String deviceId);

    Project selectById(Long id);

    List<Project> selectByAppId(Long appId);

    List<Project> selectByCompanyId(Long companyId);

    List<ProjectBo> selectByProjectSelectParam(ProjectSelectParam param);

    int countByProjectSelectParam(ProjectSelectParam param);

}